﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DBA.Common
{
    /// <summary>
    /// 加解密的抽象类
    /// </summary>
    public abstract class DEncryptBase
    {
        private string _key;

        public string Key
        {
            get { return _key; }
            set { _key = value; }
        }
        /// <summary>
        /// 加密字符串
        /// </summary>
        /// <param name="encryptString"></param>
        /// <returns></returns>
        public abstract string Encode(string encryptString);
        /// <summary>
        /// 解密字符串
        /// </summary>
        /// <param name="decryptString"></param>
        /// <returns></returns>
        public abstract string Decode(string decryptString);
    }
}
